//菜单模块相关接口
import request from "@/utils/request.js";

export const test = (fd) => {
  return request.post('/test',fd,{
    headers:{'Content-Type':'multipart/form-data'}
  });
};

export const getRoutes = () => {
  return request.post('/getRoutes');
};

export const getRoute = (routeId) => {
  return request.post('/getRoute',{id:routeId});
};

export const addRoute = (route) => {
  return request.post('/addRoute',route);
};

export const updateRoute = (routeId,route) => {
  return request.post('/updateRoute',{id:routeId,route});
};

export const deleteRoute = (routeId) => {
  return request.post('/deleteRoute',{id:routeId});
};